﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Rodunu.Business.Models.Movies;

namespace Rodunu.Clients.WPF.Collection.Forms
{
    /// <summary>
    /// Interaction logic for TechnicalInformationForm.xaml
    /// </summary>
    public partial class TechnicalInformationForm : UserControl
    {

        public Title Movie
        {
            get
            {
                return (Title)TechInfoPanel.DataContext;
            }
            set
            {
                TechInfoPanel.DataContext = value;
            }
        }

        public TechnicalInformationForm()
        {
            InitializeComponent();

            FileVideoCodecDropDown.ItemsSource = TypesHelper.GetVideoCodes();
            FileVideoCodecDropDown.DisplayMemberPath = "Name";
            FileVideoCodecDropDown.SelectedValuePath = "Id";
            MediaVideoCodecDropDown.ItemsSource = TypesHelper.GetVideoCodes();
            MediaVideoCodecDropDown.DisplayMemberPath = "Name";
            MediaVideoCodecDropDown.SelectedValuePath = "Id";

            MediumDropDown.ItemsSource = TypesHelper.GetMedium();
            MediumDropDown.DisplayMemberPath = "Name";
            MediumDropDown.SelectedValuePath = "Id";

            ConditionDropDown.ItemsSource = TypesHelper.GetCondition();
            ConditionDropDown.DisplayMemberPath = "Name";
            ConditionDropDown.SelectedValuePath = "Id";

            FileRegionDropDown.ItemsSource = TypesHelper.GetRegion();
            FileRegionDropDown.DisplayMemberPath = "Name";
            FileRegionDropDown.SelectedValuePath = "Id";
            MediaRegionDropDown.ItemsSource = TypesHelper.GetRegion();
            MediaRegionDropDown.DisplayMemberPath = "Name";
            MediaRegionDropDown.SelectedValuePath = "Id";

            LayersDropDown.ItemsSource = TypesHelper.GetLayers();
            LayersDropDown.DisplayMemberPath = "Name";
            LayersDropDown.SelectedValuePath = "Id";

            FileColorDropDown.ItemsSource = TypesHelper.GetColor();
            FileColorDropDown.DisplayMemberPath = "Name";
            FileColorDropDown.SelectedValuePath = "Id";
            MediaColorDropDown.ItemsSource = TypesHelper.GetColor();
            MediaColorDropDown.DisplayMemberPath = "Name";
            MediaColorDropDown.SelectedValuePath = "Id";

        }
    }
}
